<?php

/**
 * EmsRegister form.
 *
 * @package    ems1
 * @subpackage form
 * @author     Jacobo Martínez
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EmsRegisterForm extends BaseEmsRegisterForm
{
    public function configure()
    {
        unset ($this['form_id'], $this['created_at'], $this['updated_at']);

        $form_values_container = new sfForm();

        $values = $this->getObject()->getValues();

        foreach ($values as $key => $value) {
            $form_value = new EmsValueForm($value,array('for_user_authentication'=>$this->getOption('for_user_authentication', false)));
            $form_values_container->embedForm($key, $form_value);
        }

        $this->embedForm('Values', $form_values_container);
    }
}
